added samples
[windows-sources.git] / sdk / samples / all in on code / Visual Studio 2008 / VBWPFAnimationWhenDataChanged / ReadMe.txt
blob79ece41b61c1a73f7514f0660cba4a0be37053f9
1 ================================================================================
2 WPF APPLICATION : VBWPFAnimationWhenDataChanged Project Overview
3        
4                        VBWPFAnimationWhenDataChanged Sample
5                         
6 ===============================================================================
8 /////////////////////////////////////////////////////////////////////////////
9 Use:
11 The sample demonstrates how to trigger animation when  cell value in the datagrid
12 changed.
13    
15 /////////////////////////////////////////////////////////////////////////////
16 Code Logic:
18    1. create a style for DataGrid cell.
19    2. In the cell style, we add Binding.TargetUpdated event triggers. 
20    3. When the trigger condition is fulfilled, start the animation. 
21    4. In the AutoGeneratingColumn event handler, we set NotifyOnTargetUpdated
22       to true in order to trigger TargetUpdated event.
23    5. In a button click event handler, apply the cell style to each column.
24    
27    
28 /////////////////////////////////////////////////////////////////////////////
29 References:
32 /////////////////////////////////////////////////////////////////////////////
33 Demo
35 Step1. Build the sample project in Visual Studio 2008.
37 Step2. Start Without Debugging, and the mian window of the project will 
38 show.
40 Step3. Select one item of the data grid, and the data will show in the two 
41 textboxes below.
43 Step4. Change the value in the textboxes, and the value in the data grid 
44 item will change correspond with the textboxes.
46 Step5. Click the button in the bottom of the window, and then repeat Step4, 
47 and it will show an animation when the data changes.
48 /////////////////////////////////////////////////////////////////////////////